<%--
  @author: Duminda Dharmakeerthi
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="s" uri="/struts-tags" %>

<s:if test="hasActionErrors() || hasActionMessages()">
    <div id="message-box" class="message-box">
        <div class="action-msg"><s:actionmessage/></div>
        <div class="action-err"><s:actionerror/></div>
    </div>
</s:if>
<s:include value="./notifications.jsp"/>
<div id="module-pannel-outer">
    <ul>
        <s:if test="#session.userGroup =='admin'">
            <li><s:a href="userModule.do"><img src="${pageContext.request.contextPath}/images/user.png"
                                               alt="User Module"><span><s:label
                    value="%{getText('user_module.label')}"/></span></s:a></li>

            <%--<li><s:a href="introduceNewAlienationMethodsModule.do"><img
                    src="${pageContext.request.contextPath}/images/interest-party.png" alt="User Module"><span><s:label
                    value="%{getText('introduction_of_new_alianation_method.label')}"/></span></s:a></li>--%>

            <%--<li><s:a href="migration.do"><img--%>
                    <%--src="${pageContext.request.contextPath}/images/interest-party.png" alt="User Module"><span><s:label--%>
                    <%--value="%{getText('Migration')}"/></span></s:a></li>--%>

            <li><s:a href="taxation.do"><img
                    src="${pageContext.request.contextPath}/images/interest-party.png" alt="User Module"><span><s:label
                    value="%{getText('Taxation')}"/></span></s:a></li>
            <%--<li><s:a href="localAuthorityModule.do"><img src="${pageContext.request.contextPath}/images/user.png" alt="Local Authority Module"><span><s:label
                    value="%{getText('localAuthorityModule.label')}"/></span></s:a></li>--%>

        </s:if>
        <s:elseif test="#session.userGroup =='pa'">
            <li><s:a href="userModule.do"><img src="${pageContext.request.contextPath}/images/user.png"
                                               alt="User Module"><span><s:label
                    value="%{getText('user_module.label')}"/></span></s:a></li>


            <%--<li><s:a href="localAuthorityModule.do"><img src="${pageContext.request.contextPath}/images/user.png" alt="Local Authority Module"><span><s:label
                    value="%{getText('localAuthorityModule.label')}"/></span></s:a></li>--%>

        </s:elseif>
        <s:elseif test="#session.userGroup =='ormoi'">

            <li><s:a href="landInterests.do"><img src="${pageContext.request.contextPath}/images/company.png"
                                                  alt="Land Interests"><span><s:label
                    value="%{getText('manage_government_organization.label')}"/></span></s:a></li>
            <li><s:a href="organizationalReports.do"><img src="${pageContext.request.contextPath}/images/list.png"
                                                          alt="Organizational Reports"><span><s:label
                    value="%{getText('organizational_reports_module.label')}"/></span></s:a>
            </li>
            <li><s:a href="calenderSchedule.do"><img src="${pageContext.request.contextPath}/images/calendar-icon.png"
                                                     alt="Calender Schedule">
                <span><s:label
                        value="%{getText('calender_schedule_title.label')}"/></span>
            </s:a>
            </li>
            <li><s:a href="loadInterestMapByURMGOIUser.do"><img src="${pageContext.request.contextPath}/images/map.png"
                                                                alt="Land Interests"><span><s:label
                    value="%{getText('load_interest_map_by_urmgoi.label')}"/></span></s:a>
            </li>
        </s:elseif>
        <s:if test="#session.userGroup =='urmgoi'">
            <li><s:a href="goInterestsHome.do"><img src="${pageContext.request.contextPath}/images/interest-party.png"
                                                    alt="Land Interests"><span><s:label
                    value="%{getText('manage_organization_interest.label')}"/></span></s:a></li>
            <li><s:a href="loadPersonalDetailsOfURMGOIUser.do"><img
                    src="${pageContext.request.contextPath}/images/update-user.png"
                    alt="Land Interests"><span><s:label
                    value="%{getText('modify_personal_details_by_urmgoi')}"/></span></s:a></li>
            <li><s:a href="loadInterestMapByURMGOIUser.do"><img src="${pageContext.request.contextPath}/images/map.png"
                                                                alt="Land Interests"><span><s:label
                    value="%{getText('load_interest_map_by_urmgoi.label')}"/></span></s:a></li>
        </s:if>
        <s:else>
            <s:if test="#session.userGroup=='orlm' || #session.userGroup=='ords' || #session.userGroup=='lo'">
                <li><s:a href="landRegistrationModule.do"><img
                        src="${pageContext.request.contextPath}/images/land-reg.png"
                        alt="Land Identification"><span><s:label
                        value="%{getText('land_identification_module.label')}"/></span></s:a>
                </li>
            </s:if>
            <s:if test="#session.userGroup=='orlm' || #session.userGroup=='lo' ||  #session.userGroup=='ords' || #session.userGroup=='plc'
            || #session.userGroup=='lcg' || #session.userGroup=='orlp' || #session.userGroup=='psec'">
                <li><s:a href="landAlienationModuleHome.do"><img
                        src="${pageContext.request.contextPath}/images/landAlienation.png"
                        alt="Initial Alienation Applications"><span><s:label
                        value="%{getText('land_alienation.label')}"/> </span></s:a>
                </li>
            </s:if>
            <s:if test="#session.userGroup=='orpii'">
                <li>
                    <s:a href="organizationUserManagementHome.do">
                        <img src="${pageContext.request.contextPath}/images/people.png" alt="Module 3">
                        <span><s:label value="%{getText('user_management.label')}"/></span>
                    </s:a>
                </li>
                <li>
                    <s:a href="initEditOrganizationInfo.do">
                        <img src="${pageContext.request.contextPath}/images/registration-form.png" alt="Module 3">
                        <span><s:label value="%{getText('edit_organization_information.label')}"/> </span>
                    </s:a>
                </li>
                <li><s:a href="approveGOInterestInformationList.do"><img
                        src="${pageContext.request.contextPath}/images/accept.png"
                        alt="GOInterest Information Approval"><span><s:label
                        value="%{getText('go_interest_info_approval.label')}"/></span></s:a>
                </li>
                <li>
                    <s:a href="calenderScheduleView.do">
                        <img src="${pageContext.request.contextPath}/images/calendar-icon.png"
                             alt="View Calender Schedule">
                    <span>
                         <s:label value="%{getText('calender_schedule_view.label')}"/>
                    </span>
                    </s:a>
                </li>
                <li><s:a href="loadInterestMapByURMGOIUser.do"><img
                        src="${pageContext.request.contextPath}/images/map.png"
                        alt="Land Interests"><span><s:label
                        value="%{getText('load_interest_map_by_urmgoi.label')}"/></span></s:a>
                </li>
            </s:if>
        </s:else>
        <s:if test="#session.userGroup=='orlm' ||  #session.userGroup=='ords' ||  #session.userGroup=='lo'">
            <li>
                <s:a href="calenderScheduleView.do">
                    <img src="${pageContext.request.contextPath}/images/calendar-icon.png" alt="View Calender Schedule">
                    <span>
                         <s:label value="%{getText('calender_schedule_view.label')}"/>
                    </span>
                </s:a>
            </li>

        </s:if>
        <s:if test="#session.userGroup=='orrfl'">
            <li>
                <s:a href="alienationCalenderScheduleManage.do">
                    <img src="${pageContext.request.contextPath}/images/calendar-icon.png" alt="Calender">
                    <span>
                         <s:label value="%{getText('calender_schedule_title.label')}"/>
                    </span>
                </s:a>
            </li>
        </s:if>
        <%--  <li><s:a href="reportModule.do"><img src="${pageContext.request.contextPath}/images/print.png" alt="Print"><span><s:label
    value="%{getText('reports.label')}"/></span></s:a></li>    --%>

        <s:if test="#session.userGroup=='slc'">
            <li>
                <s:a href="loadDetailApplicationListBySLC.do">
                    <img src="${pageContext.request.contextPath}/images/detailed-form.png"
                         alt="Detailed Alienation Applications">
                    <span><s:label value="%{getText('detailed_alienation_applications.label')}"/></span>
                </s:a>
            </li>
            <li>
                <s:a href="homeSLC.do">
                    <img src="${pageContext.request.contextPath}/images/registration-form.png"
                         alt="Modify Initial Land Information">
                    <span><s:label value="%{getText('modify_detail_alienation_application.label')}"/></span>
                </s:a>
            </li>
        </s:if>

        <s:if test="#session.userGroup=='ords'">

            <li><s:a href="localAuthorityModule.do"><img src="${pageContext.request.contextPath}/images/user.png"
                                                         alt="Local Authority Module"><span><s:label
                    value="%{getText('localAuthorityModule.label')}"/></span></s:a></li>

        </s:if>
        <%--<li><s:a href="loadInterestMapByURMGOIUser.do"><img src="${pageContext.request.contextPath}/images/map.png"
                                                                                   alt="Land Interests"><span><s:label
                                value="%{getText('load_interest_map_by_urmgoi.label')}"/></span></s:a>
                        </li>--%>

        <%--<s:if test="#session.userGroup=='ords' ||  #session.userGroup=='plc' ||  #session.userGroup=='lcg'">

                    <li><s:a href="statisticsModule.do"><img src="${pageContext.request.contextPath}/images/stat.png" alt="Statistics Module"><span><s:label
                                        value="%{getText('statisticsModule.label')}"/></span></s:a></li>

                </s:if>--%>

        <s:if test="#session.userGroup=='orip'">
            <li><s:a href="landRegistrationModule.do"><img src="${pageContext.request.contextPath}/images/land-reg.png"
                                                           alt="Land Identification"><span><s:label
                    value="%{getText('land_identification_module.label')}"/></span></s:a>
            </li>
            <li><s:a href="landAlienationModuleHome.do"><img
                    src="${pageContext.request.contextPath}/images/landAlienation.png"
                    alt="Initial Alienation Applications"><span><s:label
                    value="%{getText('land_alienation.label')}"/> </span></s:a>
            </li>

        </s:if>

        <s:if test="#session.userGroup=='sc' ">
            <li><s:a href="landRegistrationModule.do"><img src="${pageContext.request.contextPath}/images/land-reg.png"
                                                           alt="Land Identification"><span><s:label
                    value="%{getText('land_identification_module.label')}"/></span></s:a>
            </li>

            <li><s:a href="paymentModule.do"><img src="${pageContext.request.contextPath}/images/payment.png"
                                                           alt="Land Identification"><span><s:label
                    value="%{getText('land_payments_module.label')}"/></span></s:a>
            </li>

        </s:if>

        <s:if test="#session.userGroup=='bo' || #session.userGroup=='sh' || #session.userGroup=='sdh' || #session.userGroup=='dh' ">
            <li><s:a href="detailForm.do"><img src="${pageContext.request.contextPath}/images/detailed-form.png"
                                                           alt="Enter Detailed Land Information"><span><s:label
                                value="Approve Land Information"/></span></s:a></li>

                </s:if>


    </ul>
</div>
